<table width="750" border="0" cellpadding="0" cellspacing="0" class="tableMainBodyFont">
  <tr>
    <td width="650" align="left">
      <center>
        <table width="750" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#DDDDDD" class="tableMainBodyFont" style=" padding-left:20px;">
          <tbody>
            
            <tr>
              <td>&nbsp;</td>
              <td width="73%" colspan="4">&nbsp;</td>
            </tr>
            <tr>
              <td width="20%">ID Pengguna </td>
              <td colspan="4">:
                <?=$edit_username?>
				<!--input name="username" size="12" maxlength="10" type="text" value="<?=$edit_username?>"/--></td>
            </tr>
            <!--tr>
              <td>Kata Laluan</td>
              <td colspan="4">:
                <input name="passwd" size="12" maxlength="10" type="text" /></td>
            </tr>
            <tr>
              <td>Kata Laluan (Semak)</td>
              <td colspan="4">:
                <input name="passwd_confirm" size="12" maxlength="10" type="text" /></td>
            </tr-->
            <tr>
              <td width="20%">Peranan</td>
              <td colspan="4">:
<?
while ($role = pg_fetch_array($roles)) {
	$checked = "";
	if (in_array($role['id'],$edit_roles))
		$checked = "checked";	
?>
                <input class="checkBox" name="role_ids[]" type="checkbox" value="<?=$role['id']?>" <?=$checked?>/><?=$role['name']?> &nbsp;
<?
}
?>
			  </td>
            </tr>
                        
            <tr>
              <th colspan="5">&nbsp;</th>
            </tr>
          </tbody>
        </table>
        <br />
        <input name="submit22" type="submit" value="Simpan"  class="button"/>
        <input name="button2" type="button" onclick="history.back()" value="Kembali"  class="button"/>
        <input name="id" value="<?=$user_id?>" type="hidden" />
      </center>
    </td>
  </tr>
</table>

